<?php

/**
 * ViewLgComptagePagination form base class.
 *
 * @method ViewLgComptagePagination getObject() Returns the current form's model object
 *
 * @package    SdCommerce
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormGeneratedTemplate.php 29553 2010-05-20 14:33:00Z Kris.Wallsmith $
 */
abstract class BaseViewLgComptagePaginationForm extends BaseFormDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'                 => new sfWidgetFormInputText(),
      'comtage_id'         => new sfWidgetFormInputText(),
      'stok_id'            => new sfWidgetFormInputText(),
      'stock_idarticle'    => new sfWidgetFormInputText(),
      'stock_iddep'        => new sfWidgetFormInputText(),
      'art_idcateg'        => new sfWidgetFormInputText(),
      'qte_disp'           => new sfWidgetFormInputText(),
      'qte_relle'          => new sfWidgetFormInputText(),
      'stock_reel'         => new sfWidgetFormInputText(),
      'ecart'              => new sfWidgetFormInputText(),
      'casse'              => new sfWidgetFormInputCheckbox(),
      'perimer'            => new sfWidgetFormInputCheckbox(),
      'reference'          => new sfWidgetFormInputText(),
      'designation'        => new sfWidgetFormInputText(),
      'libelle'            => new sfWidgetFormInputText(),
      'LibelleDepartement' => new sfWidgetFormInputText(),
    ));

    $this->setValidators(array(
      'id'                 => new sfValidatorInteger(array('required' => false)),
      'comtage_id'         => new sfValidatorInteger(array('required' => false)),
      'stok_id'            => new sfValidatorInteger(array('required' => false)),
      'stock_idarticle'    => new sfValidatorInteger(array('required' => false)),
      'stock_iddep'        => new sfValidatorInteger(array('required' => false)),
      'art_idcateg'        => new sfValidatorInteger(array('required' => false)),
      'qte_disp'           => new sfValidatorInteger(array('required' => false)),
      'qte_relle'          => new sfValidatorInteger(array('required' => false)),
      'stock_reel'         => new sfValidatorInteger(array('required' => false)),
      'ecart'              => new sfValidatorInteger(array('required' => false)),
      'casse'              => new sfValidatorBoolean(array('required' => false)),
      'perimer'            => new sfValidatorBoolean(array('required' => false)),
      'reference'          => new sfValidatorString(array('max_length' => 50)),
      'designation'        => new sfValidatorString(array('max_length' => 50)),
      'libelle'            => new sfValidatorString(array('max_length' => 20)),
      'LibelleDepartement' => new sfValidatorString(array('max_length' => 255)),
    ));

    $this->widgetSchema->setNameFormat('view_lg_comptage_pagination[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    $this->setupInheritance();

    parent::setup();
  }

  public function getModelName()
  {
    return 'ViewLgComptagePagination';
  }

}
